package com.digitalxpert.jargle.persistence;
import java.io.Serializable;
import java.util.Collection;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
@Entity
@Table(name = "CLASS")
public class JGClass implements Serializable {
	private Long id;
	private String className;
	private JGPackage pkgs;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ID")
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	@Column(name = "CLASS_NAME")
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	@ManyToOne
	@JoinColumn(name = "PKG_ID", insertable = false, updatable = false)
	public JGPackage getPkgs() {
		return pkgs;
	}
	public void setPkgs(JGPackage pkgs) {
		this.pkgs = pkgs;
	}
}
